//
//  NSString+JSWeb.m
//  JSWebDemo
//
//  Created by ac-hu on 2018/7/7.
//  Copyright © 2018年 ac-hu. All rights reserved.
//

#import "NSString+JSWeb.h"

@implementation NSString(JSWeb)
+ (NSString*)createOnlyIdentifier
{
    CFUUIDRef newUniqueID = CFUUIDCreate(kCFAllocatorDefault);
    CFStringRef newUniqueIDString = CFUUIDCreateString(kCFAllocatorDefault, newUniqueID);
    NSString *guid = (__bridge NSString *)newUniqueIDString;
    CFRelease(newUniqueIDString);
    CFRelease(newUniqueID);
    return([NSString stringWithFormat:@"%lld%@",[[NSNumber numberWithDouble:[[NSDate date] timeIntervalSince1970]]longLongValue],[guid lowercaseString]]);
}
@end
